
const assembleJson = {
  state: {
    flag: '', // 页面编码
    context: {
      order: '帮我打开待处理页面',
      page: [
        { name: '发起流程', code: 'openStartPage' },
        { name: '待处理', code: 'openTodoPage' },
        { name: '已办结', code: 'openCompletePage' },
        { name: '已作废', code: 'openCancelPage' },
        { name: '发起后续流程', code: 'openNextPage' },
        { name: '草稿箱', code: 'openDraftPage' },
        { name: '进行中', code: 'openInProgressPage' },
        { name: '字段管理', code: 'openColumnPage' },
        { name: '视图管理', code: 'openViewPage' }

      ],
      condition: [
        { name: '流程名称', code: 'flowName', type: 'string' },
        { name: '收货单位', code: 'receCompany', type: 'string' },
        { name: '发站', code: 'startStation', type: 'string' },
        { name: '到站', code: 'endStation', type: 'string' },
        { name: '合同编号', code: 'contractNo', type: 'string' },
        { name: '装船编号', code: 'tZcbh', type: 'string' },
        { name: '结算日期', code: 'tJsrq', type: 'date', format: 'yyyy-mm-dd' },
        { name: '运输方式', code: 'transport', type: 'dict', list: ['公路', '铁路', '港口'] }
      ],
      dataList: [
        { index: '1', id: '202409VY7190850442' },
        { index: '2', id: '202409VY7190850443' },
        { index: '3', id: '202409VY7190850444' },
        { index: '4', id: '202409VY7190850445' },
        { index: '5', id: '202409VY7190850446' },
        { index: '6', id: '202409VY7190850447' },
        { index: '7', id: '202409VY7190850447' },
        { index: '8', id: '202409VY7190850448' },
        { index: '9', id: '202409VY7190850449' },
        { index: '10', id: '202409VY7190850450' }
      ],
      operate: [
        { name: '去处理', code: 'gotoHandel' },
        { name: '保存单据', code: 'saveForm' },
        { name: '生成文件', code: 'makeFile' },
        { name: '选择处理人', code: 'selectPerson' },
        { name: '提交流程', code: 'commit' }
      ],
      form: [
        { name: '发运单位', label: 'FYDW' },
        { name: '合同号', label: 'HTH' },
        { name: '填表日期', label: 'TBRQ' },
        { name: '收货单位', label: 'SHDW' },
        { name: '开始发运时间', label: 'KSFYSJ' },
        { name: '结束发运时间', label: 'JSFYSJ' },
        { name: '矿厂', lengthabel: 'KC' },
        { name: '等级', label: 'DJ' },
        { name: '煤种', label: 'MZ' },
        { name: '品种', label: 'PZ' },
        { name: '全水分Mt（%）', label: 'QSF' },
        { name: '结算量', label: 'JSL' },
        { name: '拉运量', label: 'LYL' }
      ]
    }
  },
  mutations: {
    SET_CONTEXT: (state, value) => {
      state.flag = value.flag
      state.context = Object.assign(state.context, value)
    }
  },

  actions: {}
}

export default assembleJson
